package com.liwei.controller;

import com.liwei.beans.User;
import com.liwei.dto.ResultDTO;
import com.liwei.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.HashMap;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserServices userServices;
    @RequestMapping("getAll.action")
    public ArrayList<User> getAll(){
        ArrayList<User> all = userServices.getAll();
        return all;
    }

}
